let UpdateUser = (uid, userInfo, cb) => {
  let user = new wx.BaaS.User().getWithoutData(uid);
  user.set('nickname', userInfo.nickName)
  user.set('gender', userInfo.gender)
  user.set('country', userInfo.country)
  user.set('province', userInfo.province)
  user.set('city', userInfo.city)
  user.set('language', userInfo.language)
  user.set('avatar', userInfo.avatarUrl)
  user.update()
    .then(res => cb(res))
    .catch(err => console.dir(err))
}
module.exports = {
  UpdateUser
}